
const  key = 'web_token'

const getToken=() => {
   return  localStorage.getItem(key)
}

const setToken=(token) => {
    return localStorage.setItem(key,token)
}

const removeToken=() => {
    localStorage.removeItem('persist:root')
    localStorage.removeItem(key)
}

export {
    getToken,
    setToken,
    removeToken
}